package com.project.service.impl;

import com.project.bean.ManBean;
import com.project.mapper.IManMapper;
import com.project.service.IManService;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

@Service
public class ManServiceImpl implements IManService {
    private IManMapper mapper;
    @Override
    public void add(ManBean manBean) {
        mapper.add(manBean);
    }

    @Override
    public void del(int id) {
        mapper.del(id);
    }

    @Override
    public void update(int id, LocalDate birthday) {
        mapper.update(id,birthday);
    }

    @Override
    public List<ManBean> findAll() {
        return mapper.findAll();
    }
}
